package com.wz.project.bas.workshopChangeRd.service;

import com.wz.common.utils.text.Convert;
import com.wz.project.bas.workshopChangeRd.domain.WorkshopChangeRd;
import com.wz.project.bas.workshopChangeRd.mapper.WorkshopChangeRdMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 基础车间班组交接班记录 服务层实现
 * 
 * @author sys
 * @date 2021-10-28
 */
@Service
public class WorkshopChangeRdServiceImpl implements IWorkshopChangeRdService 
{
	@Autowired
	private WorkshopChangeRdMapper workshopChangeRdMapper;

	/**
     * 查询基础车间班组交接班记录信息
     * 
     * @param id 基础车间班组交接班记录ID
     * @return 基础车间班组交接班记录信息
     */
    @Override
	public WorkshopChangeRd selectWorkshopChangeRdById(String id)
	{
	    return workshopChangeRdMapper.selectWorkshopChangeRdById(id);
	}
	
	/**
     * 查询基础车间班组交接班记录列表
     * 
     * @param workshopChangeRd 基础车间班组交接班记录信息
     * @return 基础车间班组交接班记录集合
     */
	@Override
	public List<WorkshopChangeRd> selectWorkshopChangeRdList(WorkshopChangeRd workshopChangeRd)
	{
	    return workshopChangeRdMapper.selectWorkshopChangeRdList(workshopChangeRd);
	}
	
    /**
     * 新增基础车间班组交接班记录
     * 
     * @param workshopChangeRd 基础车间班组交接班记录信息
     * @return 结果
     */
	@Override
	public int insertWorkshopChangeRd(WorkshopChangeRd workshopChangeRd)
	{
	    return workshopChangeRdMapper.insertWorkshopChangeRd(workshopChangeRd);
	}
	
	/**
     * 修改基础车间班组交接班记录
     * 
     * @param workshopChangeRd 基础车间班组交接班记录信息
     * @return 结果
     */
	@Override
	public int updateWorkshopChangeRd(WorkshopChangeRd workshopChangeRd)
	{
	    return workshopChangeRdMapper.updateWorkshopChangeRd(workshopChangeRd);
	}

	/**
     * 删除基础车间班组交接班记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWorkshopChangeRdByIds(String ids)
	{
		return workshopChangeRdMapper.deleteWorkshopChangeRdByIds(Convert.toStrArray(ids));
	}
	
}
